package server;

public enum RequestType {
	login,
	logout,
	listFiles,
	download,
	upload,
	data,
	waiting,
	receive,
	delete,
	NOT_SUPPORTED;

	public static RequestType toCommand(String str)
    {
        try {
            return valueOf(str);
        }
        catch (Exception ex) {
            return NOT_SUPPORTED;
        }
    }
}
